import { BasicFetchResult } from '/@/api/model/baseModel';

export interface LabelListItem {
  // hostName: string;
  // hostIp: string;
  // appName: string;
  // hostId: string;
  // clusterId: string;
  // pathFile: string;
  // podIp: string;
  // containerName: string;
  // clusterName: string;
  // podName: string;
  // nameSpace: string;
  // time:string;
  // category:string;
  // serviceID:string;
  labels: any;
}

export interface SystemLogListItem {
  labels: LabelListItem;
}

export type LogResultModel = BasicFetchResult<SystemLogListItem>;

export type logFetchResult = LabelListItem[];

export type PageParams = {
  limit: string;
  logTime: string[];
  appId?: string;
  module?: string;
  keyword?: string;
  lineNum?: string;
  isDesc?: string;
  searchType?: string;
  highlight?: string;
  isCount?: string;
  tenantCode?: string;
  componentId?: string;
  startTimePrimal: string;
  endTimePrimal: string;
};

export type LogPageParams = PageParams;

export interface TenantItem {
  code: string;
  name: string;
}

export interface AppItem {
  appId: string;
  appName: string;
}

export interface ComponentItem {
  componentId: string;
  componentName: string;
}

export type TenantParam = {
  tenantCode: string;
};

export type AppParam = {
  appId: string;
};
